# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
#
# The cpp used on this machine replaces all newlines and multiple tabs and
# spaces in a macro expansion with a single space.  Imake tries to compensate
# for this, but is not always successful.
#

###########################################################################
# Makefile generated from "Imake.tmpl" and <Imakefile>
# $XConsortium: Imake.tmpl,v 1.77 89/12/18 17:01:37 jim Exp $
#

###########################################################################
# platform-specific configuration parameters - edit att.cf to change

# platform:  $XConsortium: att.cf,v 1.5 89/07/18 15:39:46 jim Exp $

           ROOT =
         YFLAGS =

          STRIP = $(ROOT)/bin/strip
            AWK = /usr/bin/awk
             CD = cd
             LS = /bin/ls
             PR = /bin/pr
          CHMOD = /bin/chmod
          CHOWN = /bin/chown
          CHGRP = /bin/chgrp
            SED = /bin/sed

       LOCALLIB = $(LIBDIR)

    ATT_DEFINES = -DLIBDIR=\"$(LIBDIR)\" -DDESTDIR=\"$(DESTDIR)\"

        DEFINES = $(ATT_DEFINES)
  PROTO_DEFINES =
LOCAL_LIBRARIES = $(XLIB)
  SYS_LIBRARIES =

  USE_INSTALLED =
   SYS_TO_BUILD =
   ARCHIVE_ONLY =

  USE_INSTALLED = -DUseInstalled

  BUILD_DEFINES = $(SYS_TO_BUILD) $(USE_INSTALLED) $(ARCHIVE_ONLY)

       UNIX_REL =
       CCS_USED =

     UNIX_REL = -DSVR4_0

    MAKEDEFINES = $(STD_DEFINES) $(BUILD_DEFINES) $(UNIX_REL) $(CCS_USED)

###########################################################################
# site-specific configuration parameters - edit site.def to change

# site:  $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $

INSTALLFLAGS = -g bin -u bin

# bsw specifics:  $Header: /bsw/RCS/Utils/src/bsw.cf,v 1.46 1992/08/21 20:59:22 campbell Exp $

# Platform:	i386/SysVr4 (Unix)

#Unix specifics: $Header: /bsw/RCS/Utils/src/bswunix.cf,v 1.26 1992/08/23 01:30:07 campbell Exp $

CHDR		= h
CSRC		= c
EXE		=
OBJ		= o
PRC		= sh

SYSV_CC		= cc -DBSW_SYS_SYSVR4
TERMLIB		=

EXEDIR		= /usr/local/bin
INCLUDES	= -I/bsw/Build/include -I/usr/local/include
LDFLAGS		= -L/usr/local/lib
LDOPTIONS	= -L/usr/local/lib
UNIV		= /bsw/Build/include

ECHO		= @echo

       BSW_BSW_LIB = -lbsw
        BSW_CS_LIB = -lcs
    BSW_CURSES_LIB = -lcurses
        BSW_DT_LIB = -ldt
      BSW_FILE_LIB = -lfile -lfilep -lfile
   BSW_GENERAL_LIB = -lgeneral
     BSW_VAULT_LIB = -lvault

            SHELL = /bin/sh

              TOP = .
      CURRENT_DIR = .

               AR = $(ROOT)/bin/ar
  BOOTSTRAPCFLAGS = -DSYSV -Datt -DSVR4_0
               CC = cc -DBSW_SYS_SYSVR4

         COMPRESS = compress
              CPP = $(ROOT)/lib/cpp $(STD_CPP_DEFINES)
    PREPROCESSCMD = cc -DBSW_SYS_SYSVR4 -E $(STD_CPP_DEFINES)
          INSTALL = /usr/local/gnubin/install
              MCS = /usr/bin/mcs -d -a "DELL UNIX System V.4 - x19"
               LD = $(ROOT)/bin/ld
             LINT = @echo skipping lint
      LINTLIBFLAG = -o
         LINTOPTS = -ax
               LN = /bin/ln
             MAKE = $(ROOT)/bin/make
               MV = /bin/mv
               CP = /bin/cp
           RANLIB = /bin/true
  RANLIBINSTFLAGS =
               RM = /bin/rm -f
     STD_INCLUDES = -I.
  STD_CPP_DEFINES = -Datt -DSYSV -DUSG -DSVR4_0 -DSVR4
      STD_DEFINES = -Datt -DSYSV -DUSG -DSVR4_0 -DSVR4
 EXTRA_LOAD_FLAGS = -lnsl
  EXTRA_LIBRARIES = -lc /usr/ucblib/libucb.a
             TAGS = ctags

           MFLAGS = -$(MAKEFLAGS)

    PROTO_DEFINES =

     INSTPGMFLAGS = -s -u bin -g bin

     INSTBINFLAGS = -m 0755 -u bin -g bin
     INSTUIDFLAGS = -m 4755 -u root -g bin
     INSTLIBFLAGS = -m 0664 -u bin -g bin
     INSTINCFLAGS = -m 0444 -u bin -g bin
     INSTMANFLAGS = -m 0444 -u bin -g bin
     INSTDATFLAGS = -m 0444 -u bin -g bin
    INSTKMEMFLAGS = -g sys -m 2755

          DESTDIR = /usr/X4

     TOP_INCLUDES = -I$(INCROOT)

      CDEBUGFLAGS = -O
        CCOPTIONS = -D__TIMEVAL__
      COMPATFLAGS =

      ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
           CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
           LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)
   LDCOMBINEFLAGS = -r

        MACROFILE = att.cf
           RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut

    IMAKE_DEFINES =

         IRULESRC = $(CONFIGDIR)
        IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)

     ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
			$(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
			$(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)

###########################################################################
# X Window System Build Parameters
# $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $

###########################################################################
# X Window System make variables; this need to be coordinated with rules
# $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $

          PATHSEP = /
           USRLIB = /usr/lib
        USRLIBDIR = $(DESTDIR)/lib
           BINDIR = $(DESTDIR)/bin
          INCROOT = .
     BUILDINCROOT = $(TOP)
      BUILDINCDIR = $(BUILDINCROOT)/X11
      BUILDINCTOP = ..
           INCDIR = $(INCROOT)
        USRINCDIR = $(INCROOT)
           ADMDIR = $(DESTDIR)/adm
           LIBDIR = $(DESTDIR)/lib
        CONFIGDIR = $(LIBDIR)/config
       LINTLIBDIR = $(USRLIBDIR)/lint

          HELPDIR = $(LIBDIR)/help
          FONTDIR = $(DESTDIR)/lib/fonts
         XINITDIR = /var/X4/xinit
           XDMDIR = /var/X4/xdm
           AWMDIR = $(LIBDIR)/awm
           TWMDIR = $(LIBDIR)/twm
           GWMDIR = $(LIBDIR)/gwm
          MANPATH = $(DESTDIR)/manx
    MANSOURCEPATH = $(MANPATH)/cat
           MANDIR = $(MANSOURCEPATH)1
        LIBMANDIR = $(MANSOURCEPATH)3
       GAMEMANDIR = $(MANSOURCEPATH)6
          GAMEDIR = $(DESTDIR)/bin/games
          DEMODIR = $(DESTDIR)/bin/demos
      XAPPLOADDIR = $(LIBDIR)/app-defaults
       FONTCFLAGS = -s -t

     INSTAPPFLAGS = $(INSTDATFLAGS)

     TOP_INCLUDES =
   EXTRA_INCLUDES = -I$(INCROOT) -I$(INCDIR) -I/usr/include -I/usr/ucbinclude

            FONTC = bdftosnf
        MKFONTDIR = mkfontdir
INCLUDE_EXTENSION = $(INCDIR)/extensions

            IMAKE = $(IMAKESRC)/imake
           DEPEND = $(DEPENDSRC)/makedepend
              RGB = $(RGBSRC)/rgb
        MKDIRHIER = /bin/sh $(CONFIGSRC)/mkdirhier.sh

        CONFIGSRC = $(TOP)/config
        CLIENTSRC = $(TOP)/clients
          DEMOSRC = $(TOP)/demos
           LIBSRC = $(TOP)/lib
          FONTSRC = $(TOP)/fonts
       INCLUDESRC = $(TOP)/X11
        SERVERSRC = $(TOP)/server
          UTILSRC = $(TOP)/util
        SCRIPTSRC = $(UTILSRC)/scripts
       EXAMPLESRC = $(TOP)/examples
       CONTRIBSRC = $(TOP)/contrib
           DOCSRC = $(TOP)/doc
           RGBSRC = $(TOP)/rgb
        DEPENDSRC = $(UTILSRC)/makedepend
         IMAKESRC = $(CONFIGSRC)
         XAUTHSRC = $(LIBSRC)/Xau
          XLIBSRC = $(LIBSRC)/X
       OLDXLIBSRC = $(LIBSRC)/oldX
           XMUSRC = $(LIBSRC)/Xmu
       TOOLKITSRC = $(LIBSRC)/Xt
       AWIDGETSRC = $(LIBSRC)/Xaw
      XDMCPLIBSRC = $(LIBSRC)/Xdmcp
      BDFTOSNFSRC = $(FONTSRC)/bdftosnf
     MKFONTDIRSRC = $(FONTSRC)/mkfontdir
     EXTENSIONSRC = $(TOP)/extensions
           ATTSRC = $(TOP)/att
         LOCALSRC = $(TOP)/local
           PKGSRC = $(TOP)/pkg
           MTGSRC = $(TOP)/mtg
          XMTGSRC = $(MTGSRC)/Xmtg
       XMTGRGBSRC = $(MTGSRC)/rgb
    NAMESERVERSRC = $(TOP)/nameserver
        XOLLIBSRC = $(LIBSRC)/Xol
           BDFSRC = $(FONTSRC)/bdf
       XOLFONTSRC = $(BDFSRC)/Xol
        R2FONTSRC = $(BDFSRC)/r2fonts
           ADMSRC = $(PKGSRC)/adm

     BITMAPINCDIR = includes/bitmaps
           BSDDIR = $(DESTDIR)/includes
        BSDSYSDIR = $(BSDDIR)/sys
           NETDIR = $(LIBDIR)/net
       STARLANDIR = $(NETDIR)/starlan
            ITDIR = $(NETDIR)/it
           TCPDIR = $(NETDIR)/tcp
           UWMDIR = $(LIBDIR)/uwm
        BITMAPDIR = $(BITMAPINCDIR)

          ARFLAGS = rv
        CLIBFLAGS =

         XHOSTLOC = $(USRLIBDIR)
       SHLIBFLAGS = -L $(ROOT)/usr/lib -L $(ROOT)/lib -L $(XHOSTLOC)
       DSLIBFLAGS =

      XLIB_TO_USE = libX11.so
     XtLIB_TO_USE = libXt.so
    XauLIB_TO_USE = libXau.a
    XawLIB_TO_USE = libXaw.so
    XmuLIB_TO_USE = libXmu.a
    XolLIB_TO_USE = libXol.so
   XextLIB_TO_USE = libXext.a
    olcLIB_TO_USE = libolc.a
   OLDXLIB_TO_USE = liboldX.a

   XLIBS_TO_BUILD = libX11.so libX11.a
  XtLIBS_TO_BUILD = libXt.so libXt.a
 XauLIBS_TO_BUILD = libXau.a
 XawLIBS_TO_BUILD = libXaw.so libXaw.a
 XmuLIBS_TO_BUILD = libXmu.so libXmu.a
 XolLIBS_TO_BUILD = libXol.so libXol.a
XextLIBS_TO_BUILD = libXext.so libXext.a
 olcLIBS_TO_BUILD = libolc.a

      NAMESERVERS = starserver

   EXTENSIONLIB = $(USRLIBDIR)/$(XextLIB_TO_USE)
DEPEXTENSIONLIB = $(EXTENSIONLIB)
       XAUTHLIB = $(USRLIBDIR)/$(XauLIB_TO_USE)
    DEPXAUTHLIB = $(XAUTHLIB)
           XLIB = $(EXTENSIONLIB) $(USRLIBDIR)/$(XLIB_TO_USE)
        DEPXLIB = $(XLIB)
         XMULIB = $(USRLIBDIR)/$(XmuLIB_TO_USE)
      DEPXMULIB = $(XMULIB)
       XTOOLLIB = $(USRLIBDIR)/$(XtLIB_TO_USE)
    DEPXTOOLLIB = $(XTOOLLIB)
         XAWLIB = $(USRLIBDIR)/$(XawLIB_TO_USE)
      DEPXAWLIB = $(XAWLIB)
         XOLLIB = $(XOLLIBSRC)/$(XolLIB_TO_USE)
      DEPXOLLIB = $(XOLLIB)
        OLDXLIB = $(USRLIBDIR)/$(OLDXLIB_TO_USE)
     DEPOLDXLIB = $(OLDXLIB)
 LINTEXTENSIONLIB = $(USRLIBDIR)/llib-lXext.ln
         LINTXLIB = $(USRLIBDIR)/llib-lX11.ln
          LINTXMU = $(USRLIBDIR)/llib-lXmu.ln
        LINTXTOOL = $(USRLIBDIR)/llib-lXt.ln
          LINTXAW = $(USRLIBDIR)/llib-lXaw.ln

        XWLIBSRC = $(LIBSRC)/Xw/Xw
        DEPXWLIB = $(USRLIBDIR)/libXw.a
        XWLIB =  -lXw

      USRINCDIR = $(DESTDIR)/includes
        TESTSRC = $(TOP)/tests
     TESTSRCLIB = $(TESTSRC)/lib
     TESTSRCBIN = $(TESTSRC)/bin
       COMMONPP = $(TESTSRCBIN)/Commonpp

     TESTCOMSRC = $(TESTSRCLIB)/Common
    MTOOLKITSRC = $(LIBSRC)/Xt
     MWIDGETSRC = $(LIBSRC)/Xm
   MRESOURCESRC = $(LIBSRC)/Mrm
         UILSRC = $(CLIENTSRC)/uil
         UIDDIR = $(LIBDIR)/uid
            UIL = LD_LIBRARY_PATH=$(XLIBSRC)\:$(TOOLKITSRC)\:$(MWIDGETSRC)\:$(MRESOURCESRC);export LD_LIBRARY_PATH;$(UILSRC)/uil
      XMTOOLLIB = $(MTOOLKITSRC)/libXt.so
          XMLIB = $(MWIDGETSRC)/libXm.so
   MRESOURCELIB = $(MRESOURCESRC)/libMrm.so
         UILLIB = $(UILSRC)/libUil.so
     TESTCOMLIB = $(TESTCOMSRC)/libCommon.a

  LINTMRESOURCE = $(MRESOURCESRC)/libMrm.a
LINTXMWIDGETLIB = $(MWIDGETSRC)/llib-l/Xm.ln
     LINTXMTOOL = $(MTOOLKITSRC)/llib-lXt.ln
     LINTUILLIB = $(UILSRC)/llib-lUil.ln

###########################################################################
# @(#)XView.cf 1.1 90/07/09 SMI
# XView.cf for XView release 2.0.  Specify site preferences here.

###########################################################################
# @(#)XView.tmpl 1.2 90/07/16 SMI
# XView.tmpl for XView release 2.0.  Template to add additional config
# rules to those supplied with X Version 11 release 4.

              XVDESTDIR = $(DESTDIR)
           LIBRARY_DEST = $(XVDESTDIR)/lib
      LINT_LIBRARY_DEST = $(XVDESTDIR)/lib/lint
               XVLIBSRC = $(TOP)/lib

            HEADER_DEST = $(XVDESTDIR)/includes
               SRC_DEST = $(XVDESTDIR)/src/xview
               DOC_DEST = $(XVDESTDIR)/doc/xview
              HELP_DEST = $(LIBRARY_DEST)/help
    LIBRARY_DEST_EXTRAS = $(LIBRARY_DEST)
       TEXT_EXTRAS_MENU = $(LIBRARY_DEST)/.text_extras_menu

               XVPUBINC = xview
               XVPRIINC = xview_private
               OLPUBINC = olgx
               OLPRIINC = olgx_private
               PSPUBINC = xvps
               PSPRIINC = xvps_private
               IMAGEINC = images
         PIXRECT_INCDIR = pixrect
           XVPUB_INCDIR = $(XVPUBINC)
           XVPRI_INCDIR = $(XVPRIINC)
           OLPUB_INCDIR = $(OLPUBINC)
           OLPRI_INCDIR = $(OLPRIINC)
           PSPUB_INCDIR = $(PSPUBINC)
           PSPRI_INCDIR = $(PSPRIINC)
           IMAGE_INCDIR = $(IMAGEINC)
    PIXRECT_HEADER_DEST = $(HEADER_DEST)/pixrect
      XVPUB_HEADER_DEST = $(HEADER_DEST)/$(XVPUBINC)
      XVPRI_HEADER_DEST = $(HEADER_DEST)/$(XVPRIINC)
      OLPUB_HEADER_DEST = $(HEADER_DEST)/$(OLPUBINC)
      OLPRI_HEADER_DEST = $(HEADER_DEST)/$(OLPRIINC)
      PSPUB_HEADER_DEST = $(HEADER_DEST)/$(PSPUBINC)
      PSPRI_HEADER_DEST = $(HEADER_DEST)/$(PSPRIINC)
            IMAGES_DEST = $(HEADER_DEST)/$(IMAGEINC)

                LINTDIR = $(XVDESTDIR)/lib/lint

                    PIC = -pic
                   XSTR = xstr
             XSTR_ARRAY = _libxview_xstr
                OBJSORT = ./objsort.sh
                OBJLIST = ./lorder-sparc
     INSTSHAREDLIBFLAGS = -m 0755

            DEPXVIEWLIB =
               XVIEWLIB = $(LIBRARY_DEST)/libxview.so

            DEPOLGXLIB =
               OLGXLIB = $(LIBRARY_DEST)/libolgx.a

            DEPXVPSLIB =
               XVPSLIB = -lxvps

             SOXVIEWREV = 3.0
              SOOLGXREV = 3.0

                  SODIR = shared
                  SADIR = unshared

             SHARED_DIR = $(TARGETDIR)xshared
           UNSHARED_DIR = $(TARGETDIR)xunshared
      XSTR_STRINGS_FILE = $(TARGETDIR)xstrings

###########################################################################
# @(#)XView.rules 1.3 90/08/02 SMI
# XView.rules for XView release 2.0.  Imake rules needed by distribution.

###########################################################################
# Imake rules for building libraries, programs, scripts, and data files
# rules:  $XConsortium: Imake.rules,v 1.67 89/12/18 17:14:15 jim Exp $

###########################################################################
# start of Imakefile

IMAKE = imake

BINDIR=/usr/local/bin

SLIB_DIR=/usr/lib/scheme

SCMSRCDIR = ..

INCLUDES = -I$(SCMSRCDIR) -I/usr/include/X11

CFLAGS = $(INCLUDES) -O -DSYSV -DFLOATS

SCMOBJS =			\
	$(SCMSRCDIR)/fscl.o	\
	$(SCMSRCDIR)/feval.o	\
	$(SCMSRCDIR)/funif.o	\
	$(SCMSRCDIR)/repl.o	\
	$(SCMSRCDIR)/sc2.o	\
	$(SCMSRCDIR)/subr.o	\
	$(SCMSRCDIR)/sys.o	\
	$(SCMSRCDIR)/time.o

all: pgms

pgms::	xscm

install:: xscm
	$(STRIP) xscm
	$(MCS) xscm
	$(INSTALL) $(INSTALLFLAGS)   -f $(BINDIR) xscm

pgms::	xmscm

install:: xmscm
	$(STRIP) xmscm
	$(MCS) xmscm
	$(INSTALL) $(INSTALLFLAGS)   -f $(BINDIR) xmscm

pgms::	olscm

install:: olscm
	$(STRIP) olscm
	$(MCS) olscm
	$(INSTALL) $(INSTALLFLAGS)   -f $(BINDIR) olscm

install:: assert.scm
	$(INSTALL) $(INSTDATFLAGS) -f $(SLIB_DIR) assert.scm

install:: x11.scm
	$(INSTALL) $(INSTDATFLAGS) -f $(SLIB_DIR) x11.scm

install:: xt.scm
	$(INSTALL) $(INSTDATFLAGS) -f $(SLIB_DIR) xt.scm

install:: xw.scm
	$(INSTALL) $(INSTDATFLAGS) -f $(SLIB_DIR) xw.scm

install:: xm.scm
	$(INSTALL) $(INSTDATFLAGS) -f $(SLIB_DIR) xm.scm

install:: ol.scm
	$(INSTALL) $(INSTDATFLAGS) -f $(SLIB_DIR) ol.scm

install:: xmsubs.scm
	$(INSTALL) $(INSTDATFLAGS) -f $(SLIB_DIR) xmsubs.scm

install:: olsubs.scm
	$(INSTALL) $(INSTDATFLAGS) -f $(SLIB_DIR) olsubs.scm

install:: xevent.scm
	$(INSTALL) $(INSTDATFLAGS) -f $(SLIB_DIR) xevent.scm

xscm:  xscm.o x.o
	$(RM) $@
	$(CC) -o $@ xscm.o x.o $(LDOPTIONS) $(LDFLAGS)  \
	$(SCMOBJS) $(XLIB) -lm $(LDLIBS) $(EXTRA_LOAD_FLAGS) \
	$(SYSLAST_LIBRARIES)

clean::
	$(RM) xscm

lint::
	@SRCS=""; \
	for i in xscm.o x.o; \
	do \
	src=`basename $$i .o`.c; \
	SRCS="$$SRCS $$src"; \
	done; \
	echo "bswlint -ux $$SRCS"; \
	bswlint -ux $$SRCS

xmscm:  xmscm.o x.o libxm.a
	$(RM) $@
	$(CC) -o $@ xmscm.o x.o $(LDOPTIONS) $(LDFLAGS) libxm.a \
	libxm.a $(SCMOBJS) -lXm -lXt $(XLIB) -lm $(LDLIBS) $(EXTRA_LOAD_FLAGS) \
	$(SYSLAST_LIBRARIES)

clean::
	$(RM) xmscm

lint::
	@SRCS=""; \
	for i in xmscm.o x.o; \
	do \
	src=`basename $$i .o`.c; \
	SRCS="$$SRCS $$src"; \
	done; \
	echo "bswlint -ux $$SRCS"; \
	bswlint -ux $$SRCS

olscm:  olscm.o x.o libol.a
	$(RM) $@
	$(CC) -o $@ olscm.o x.o $(LDOPTIONS) $(LDFLAGS) libol.a \
	libol.a $(SCMOBJS) -lXol -lXt $(XLIB) -lm $(LDLIBS) $(EXTRA_LOAD_FLAGS) \
	$(SYSLAST_LIBRARIES)

clean::
	$(RM) olscm

lint::
	@SRCS=""; \
	for i in olscm.o x.o; \
	do \
	src=`basename $$i .o`.c; \
	SRCS="$$SRCS $$src"; \
	done; \
	echo "bswlint -ux $$SRCS"; \
	bswlint -ux $$SRCS

OLOBJS = xt-ol.o ol.o
XMOBJS = xt-xm.o xm.o

libxm.a: $(XMOBJS)
	ar rc libxm.a $(XMOBJS)

libol.a: $(OLOBJS)
	ar rc libol.a $(OLOBJS)

xscm.o:	$(SCMSRCDIR)/scm.c $(SCMSRCDIR)/scm.h $(SCMSRCDIR)/config.h $(SCMSRCDIR)/patchlvl.h
	$(CC) $(CFLAGS) -c -DINITS=init_x\(\) $(SCMSRCDIR)/scm.c
	$(MV) scm.o xscm.o

olscm.o:	$(SCMSRCDIR)/scm.c $(SCMSRCDIR)/scm.h $(SCMSRCDIR)/config.h $(SCMSRCDIR)/patchlvl.h
	$(CC) $(CFLAGS) -c -DINITS=init_x\(\)\;init_xt\(\)\;init_ol\(\) $(SCMSRCDIR)/scm.c
	$(MV) scm.o olscm.o

xmscm.o:	$(SCMSRCDIR)/scm.c $(SCMSRCDIR)/scm.h $(SCMSRCDIR)/config.h $(SCMSRCDIR)/patchlvl.h
	$(CC) $(CFLAGS) -c -DINITS=init_x\(\)\;init_xt\(\)\;init_xm\(\) $(SCMSRCDIR)/scm.c
	$(MV) scm.o xmscm.o

ol.o:	ol.c x.h xt.h
	$(CC) $(CFLAGS) -c ol.c

x.o:	x.c xevent.h x.h version.h

xevent.h xevent.scm: xgen.scm
	scm xgen

xm.o: xm.c x.h xt.h
	$(CC) $(CFLAGS) -DMOTIF -c xm.c

xt-xm.o: xt.c x.h xt.h
	$(CC) $(CFLAGS) -DMOTIF -c xt.c
	$(MV) xt.o xt-xm.o

xt-ol.o: xt.c x.h xt.h
	$(CC) $(CFLAGS) -c xt.c
	$(MV) xt.o xt-ol.o

README: README.template
	./versionify <README.template >README

Makefile.std:	Imakefile
	imake -I/usr/X4/lib/config -DUseInstalled -s Makefile.std

PART1 =	README INSTALL Imakefile Makefile.std xgen.scm x.h xt.h

PART2 =	version.h x.c

PART3 =	xt.c xm.c ol.c

PART4 =	assert.scm x11.scm xm.scm xt.scm xw.scm ol.scm \
	olsubs.scm xmsubs.scm

PART5 =	oltest.scm xmtest.scm xelk.scm \
	xhello.scm xftp.scm xcolorselect.scm xmandel.scm

shar: part1.shar part2.shar part3.shar part4.shar part5.shar

part1.shar: $(PART1)
	shar $(PART1) >$@

part2.shar: $(PART2)
	shar $(PART2) >$@

part3.shar: $(PART3)
	shar $(PART3) >$@

part4.shar: $(PART4)
	shar $(PART4) >$@

part5.shar: $(PART5)
	shar $(PART5) >$@

clean::
	rm -f *.shar xevent.h xevent.scm README Makefile Makefile.std

###########################################################################
# common rules for all Makefiles - do not edit

emptyrule::

clean::
	$(RM_CMD) \#*

clobber::
	$(RM_CMD) \#*

Makefile:: FRC
	@echo "making Makefile in `pwd` ...\c"
	-@$(RM) Makefile.bak
	-@if [ -f Makefile ]; then \
	$(MV) Makefile Makefile.bak; \
	fi
	@$(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR) -I$(CONFIGSRC)
	@echo "done!"
FRC:

tags::
	$(TAGS) -w *.[ch]
	$(TAGS) -xw *.[ch] > TAGS

###########################################################################
# empty rules for directories that do not have SUBDIRS - do not edit

install::
	@echo "install in $(CURRENT_DIR) done"

install.man::
	@echo "install.man in $(CURRENT_DIR) done"

Makefiles::

includes::

depend::

###########################################################################
# dependencies generated by makedepend

